<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div>
		<h3>接口文档</h3>
		<div>
			<div>接口基准地址:http://localhost:8080/BlogServlet/</div>
			<div>数据返回格式统一使用JSON</div>
			<div>支持的请求方法：GET/POST</div>
			<div>通用返回状态说明：</div>
			<div>
				<table>
					<tr>
						<th>状态码</th>
						<th>含义</th>
						<th>说明</th>
					</tr>
					<tr>
						<td>200</td>
						<td>ok</td>
						<td>请求成功</td>
					</tr>
					<tr>
						<td>400</td>
						<td>bad request</td>
						<td>请求的地址不存在或者包含不支持的参数</td>
					</tr>
					<tr>
						<td>500</td>
						<td>internal server error</td>
						<td>内部错误</td>
					</tr>
				</table>
			</div>
			<div>
				<h4>登录</h4>
				<div>请求路径:/LoginServlet</div>
				<div>请求方式:post</div>
				<div>
					<div>请求参数</div>
					<table>
						<tr>
							<th>参数名</th>
							<th>参数说明</th>
							<th>备注</th>
						</tr>
						<tr>
							<td>email</td>
							<td>用户名</td>
							<td>不能为空</td>
						</tr>
						<tr>
							<td>password</td>
							<td>密码</td>
							<td>不能为空</td>
						</tr>
					</table>
				</div>
				<div>
					<div>相应参数</div>
					<table>
						<tr>
							<th>参数名</th>
							<th>参数说明</th>
							<th>备注</th>
						</tr>
						<tr>
							<td>id</td>
							<td>用户id</td>
							<td></td>
						</tr>
						<tr>
							<td>email</td>
							<td>用户名</td>
							<td></td>
						</tr>
						<tr>
							<td>nickname</td>
							<td>用户昵称</td>
							<td></td>
						</tr>
						<tr>
							<td>role</td>
							<td>用户角色</td>
							<td></td>
						</tr>
						<tr>
							<td>status</td>
							<td>账号状态</td>
							<td></td>
						</tr>
					</table>
				</div>
				<div>
					<h4>响应数据</h4>
					<div>"data":{ 'email':'', 'nickname':'', 'role':'',
						'status':'', }, message{ "code":"200" "msg":"登录成功" }</div>
				</div>
			</div>
		</div>
		<div>
			<h3>博客管理</h3>
			<h4>博客列表</h4>
			<div>请求路径:/LoginServlet</div>
			<div>请求方式:get</div>
			<div>
				<div>请求参数</div>
				<table>
					<tr>
						<th>参数名</th>
						<th>参数说明</th>
						<th>备注</th>
					</tr>
					<tr>
						<td>query</td>
						<td>查询参数</td>
						<td>可以为空</td>
					</tr>
					<tr>
						<td>pageNO</td>
						<td>当前页码</td>
						<td>不能为空</td>
					</tr>
					<tr>
						<td>pageSize</td>
						<td>每页显示条数</td>
						<td>不能为空</td>
					</tr>
				</table>
			</div>
			<div>
				<div>相应参数</div>
				<table>
					<tr>
						<th>参数名</th>
						<th>参数说明</th>
						<th>备注</th>
					</tr>
					<tr>
						<td>totalpage</td>
						<td>总记录数</td>
						<td></td>
					</tr>
					<tr>
						<td>pageNO</td>
						<td>当前页码</td>
						<td></td>
					</tr>
					<tr>
						<td>hasPre</td>
						<td>是否有上一页</td>
						<td></td>
					</tr>
					<tr>
						<td>hasNext</td>
						<td>是否有下一页</td>
						<td></td>
					</tr>
					<tr>
						<td>bloglist</td>
						<td>博客数据集合</td>
						<td></td>
					</tr>
				</table>
			</div>
			<div>
				<h4>响应数据</h4>
				<div>"data":{ 'totalpage':10, 'pageNO':1, 'hasPre':false,
					'hasNext':true, 'bloglist':[] }, message{ "code":"200" "msg":"获取成功"
					}</div>
			</div>
		</div>
	</div>
	</div>
</body>
</html>